<?php
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// |
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 后台首页
// +----------------------------------------------------------------------
namespace app\admin\controller;

use app\admin\model\AdminUser;
use app\admin\model\Config;
use app\admin\service\User;
use app\common\controller\Adminbase;
use GuzzleHttp\Exception\GuzzleException;
use libs\Redis;
use think\captcha\Captcha;
use think\Db;
use think\facade\Cache;

class Version extends Adminbase
{
    //后台首页
    /**
     * @throws GuzzleException
     */
    public function index()
    {
        $lists = [];
        $version = $latest_version = '1.0.0';
        $this->assign('lists', $lists);
        $this->assign('version', '当前系统版本：' . $version);
        $this->assign('latest_version', '最新系统版本：' . $latest_version);
        $this->assign('is_update', $version != $latest_version);
        return $this->fetch('version/index');
    }

}
